Early results of the LHCf experiment and their contribution to ultra-high-energy cosmic ray physics