Change in structural, ferroelectric, and magnetic properties of bismuth ferrite induced by doping with gadolinium