Design of freeze-dried formulations for the enhancement of drug release