The Brazier effect for elastic pipe beams with foam cores