A BIM-Based Solution for the Optimisation of Fire Safety Measures in the Building Design