Self-Supervised Learning for Endoscopic Video Analysis