The Permittivity Based on Electromagnetic Wave Attenuation for Rain Medium and its Applications