Phase transition and vibrational properties of A2(BO4)3 compounds (A=Sc, In; B=Mo, W)