Scaling Laws of RoPE-based Extrapolation