Second order variations in variational sequences