Interference alignment in partially connected interfering multiple-access and broadcast channels