A study of turbulent boundary-layer separation and reattachment