Fix mcsolve average state

Bug in mcsolve: np.mean does not work with sparse matrices. Use np.sum + normalization instead.