Number-conserving random phase approximation with analytically integrated matrix elements.