Automatic evaluation of plastic collapse conditions for planar frames with vertical irregularities