Ab initio studies of stepped Pd surfaces with and without S