Propagation and absorption of electron-cyclotron maser radiation during solar flares