Effect of P-wave interaction in 6He and 6Li photoabsorption