Pseudopotential generator for the contact interaction