Keylor Navas emerged as the hero as Costa Rica beat Greece on penalties to move into the FIFA World Cup quarter-finals for the first time.