Gay men convicted of now-abolished sex offences to be pardoned