Microscopic mechanism of proton conduction in perovskite oxides from ab initio molecular dynamics simulations