Yann Sommer’s injury-time own goal gave Costa Rica their first part of the tournament, but Switzerland qualified safely for the last 16