Quark distributions in nuclear matter and the EMC effect