Inelastic cross sections of K mesons in carbon and copper at 2.95 GeV/c