Defensive Structures of Medieval Cities of Azerbaijan: the Ways of Development and Features of Evolution