Spray-coated electret materials with enhanced stability in a harsh environment for an MEMS energy harvesting device