Second order analysis of the mobility of kinematic loops via acceleration compatibility analysis