Thrilling win for Pedrosa in Czech Republic