Modulating electronic and optical properties of monolayered MoS2 by covalent mono- and bisfunctionalization