The Mathematics of Long-Range Aperiodic Order