On fractional Euler–Lagrange and Hamilton equations and the fractional generalization of total time derivative