A self‐consistent mechanism for electron cyclotron maser emission and its application to type III solar radio bursts