Convergence of block pulse series approximation solution for optimal control problem