Germany holds off Latvia, will face USA in FIBA semifinals