Mechanical loss and Young's modulus associated with phase transitions in barium titanate based ceramics