Minimum refinement function position

This pull request addresses issue #46 and uses the patches suggested in pull request #146. It enables the minimum refinement level function to use not only the depth, but also cartesian or spherical coordinates to prescribe the minimum level of refinement of a mesh cell. It also adds tests for this cases.
remove all that. You don't need explicit instantiations if the code is in the header.