Analysis of radio-frequency absorption and electric and magnetic field enhancements due to surface roughness