Stability and resonance conditions of second-order fractional systems