A compton spectrometer for the energy range between 10 and 300 MeV and its application to photon flux and photon absorption measurements