Finite-size scaling for systems with long-range interactions