Comparison between methods for the determination of the primary cosmic ray mass composition from the longitudinal profile of atmospheric cascades