Static analysis of thin-walled structures using polynomial and exact solutions. Application to thin-walled pipes