Speciation reversal and biodiversity dynamics with hybridization in changing environments