Systems and methods for aerosolizing pharmaceutical formulations