High‐dimensional classification based on nonparametric maximum likelihood estimation under unknown and inhomogeneous variances