Discovery and modeling of overcontact binaries in photometric and spectroscopic sky surveys