Factors affecting remand in custody: a study of bail practices in Victoria, South Australia and Western Australia