Generalized noniterative maximum entropy procedure for phase retrieval problems in optical spectroscopy