Sharpness-induced energy shifts of quantum well states in Pb islands on Cu(111)