Microscopic optical potential from chiral nuclear forces