Transmission resonances and supercritical states in a one-dimensional cusp potential