European Union lays out how Apple must open its tech up to competitors under bloc’s digital rules