Text this: Development and application of an algorithm to estimate the effective energy of x-rays on conventional mammography