Phase transitions in flexible solution-processed ferroelectric P(VDF-TrFE) copolymer thin films