Analysis of the Angular Distribution of Soft-x-ray Photoelectrons: a Tool for Surface Structure Determination