Scattering of twist fields from D-branes and orientifolds