Text this: Optimal sequential relay-remote selection and computation offloading in mobile edge computing