Bethalto man sentenced to 40 years for sexually assaulting minors