Improving the Sustainability of Synthetic Methods for Accessing d- and f-Block Metal–Organic Frameworks