Oscillations and interactions of dark and dark–bright solitons in Bose–Einstein condensates