Control and determination of ZnMgBeSe quaternary alloy composition