Motion-induced dose perturbations in photon radiotherapy and proton therapy measured by deformable liver-shaped 3D dosimeters in an anthropomorphic phantom