extracts email addresses from a string