Bound states in a nonlinear Kronig Penney model