A hybrid explicit/implicit solvation method for first-principle molecular dynamics simulations