Gravar-mail: Optimal Filters with Multiple Packet Losses and its Application in Wireless Sensor Networks