A nurse from Greenock has been struck off following an affair with a patient at a secure mental health unit in Glasgow.