Intrinsic layer-polarized anomalous Hall effect in bilayer MnBi2Te4