Stability studies of small molecules and proteins