Proposal for a tool to design masonry double curved shells: Analysis and optimisation of a shape and generation of the brick pattern