A photometric investigation of the spicules and the structure of the chromosphere