Nonoscillation and oscillation of second-order linear dynamic equations via the sequence of functions technique