Using Wi-Fi channel state information (CSI) for human activity recognition and fall detection