Matching X-ray beam and detector properties to protein crystals of different perfection