Electrostatic force microscopy as a broadly applicable method for characterizing pyroelectric materials