Superfluid states of nuclear matter beyond the BCS approximation