added functions to util module for conversion from flux to magnitudes