A “perverted” Bridlington man who sexually abused two teenage boys over a period of 12 years has been jailed.