Improving the magnetic, electronic and optical properties of the monolayer WSe2 via Mn-X (X = O, S, Se or Te) codoping