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.
I would put the two implementations in the header so that they can be inlined if the compiler wants to do this.