Gamow, a program for calculating the resonant state solution of the radial Schrödinger equation in an arbitrary optical potential