Algorithmic Analysis and Statistical Estimation of SLOPE via Approximate Message Passing