Interplay between elasticity, ferroelectricity and magnetism at the domain walls of bismuth ferrite