A priori bounds in weighted spaces