Charge transfer and screening effects in polyynes encapsulated inside single-wall carbon nanotubes