Resource taxation with heterogeneous quality and endogenous reserves