Coherent modes of X-ray beams emitted by undulators in new storage rings