A study on the penetrating nature of gamma- and hadron-induced cascade showers in the two-storey emulsion chambers