Localized U 5f electrons in UPd3 from LDA+U calculations