A topologically valid definition of depth for functional data