Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysis