Darboux transformation, localized waves and conservation laws for an M-coupled variable-coefficient nonlinear Schrödinger system in an inhomogeneous optical fiber