A correlated-basis-functions approach to realistic nuclear matter