A petition for a federal writ of habeas corpus may be appropriate if the state court’s ruling violated federal law or was based on an unreasonable interpretation of the evidence presented at trial.