System and method for fall detection