Influence of transition metal doping (X  =  Mn, Fe, Co, Ni) on the structure and bandgap of ferroelectric Bi3.15Nd0.85Ti2X1O12