Determination of rank by median absolute deviation (DRMAD): a simple method for determining the number of principal factors responsible for a data matrix