Wearable in-ear electroencephalography for real world applications: sleep monitoring and person authentication