Hydrogenic impurity states in a quantum well: A simple model