Ultramicroscopy of complex pharmaceutical materials