Community pattern analysis: A method for quantifying community mosaic structure