A systematic study on the distribution of epidermal ridge minutiae and determination of sex from fingerprints