Tuning band alignment and optical properties of 2D van der Waals heterostructure via ferroelectric polarization switching