Krein-von Neumann and Friedrichs extensions for second order operators on time scales