Electronic and mechanical coupling between guest and host in carbon peapods