Tuning the physical properties of 2D materials via molecular functionalization