A simple auction mechanism for the optimal allocation of the commons