Generalized nonrelativistic Lamb-shift theory