Process development and quality attributes for the freeze-drying process in pharmaceuticals, biopharmaceuticals and nanomedicine delivery: a state-of-the-art review