Crystal structure and ferroelectric properties of rare-earth substituted BiFeO3 thin films