Determination of amorphous content in the pharmaceutical process environment