Water adsorption on Pd {100} from first principles