Crack resistance of bismuth ferrite films obtained on a flexible substrate