Principles of organization in eubacterial and archaebacterial surface proteins