A priori estimates for prescribing scalar curvature equations