The continuous rank function for varieties of maximal Albanese dimension and its applications