A one-dimensional tearing mode equation for pedestal stability studies in tokamaks. (14th June 2018)