Processing and properties of thin film pyroelectric devices